package com.zt.english.activity.word

import android.view.View
import com.zt.english.R
import com.zt.english.databinding.ActivityChangePlanBinding
import com.zt.mvvm.common.utils.gotoActivity
import com.zt.mvvm.viewmodel.BaseViewModel

/**
Desc:文件功能描述
Author:ZT
Date:2021/1/21
 */
class ChangePlanViewModel : BaseViewModel<ChangePlanRepository,ActivityChangePlanBinding>(){
    val mActivity by lazy {
        mLifecycleOwner as ChangePlanActivity
    }
    override fun initView() {
        mBinding.viewmodel = mActivity.mViewModel
        mBinding.inclde.title = "改变单词本"
        mBinding.inclde.background = mActivity.resources.getColor(R.color.color_app_theme)
    }

    override fun initData() {

    }
    fun addPlan(view:View){
        gotoActivity<WordLibraryActivity>(mActivity)
    }
}